package com.cn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@RequestMapping(value = "one")
@Controller
public class myfirstcontroller {

    @RequestMapping("/hello")
    public String myfirstQuest() {
        System.out.println("hello请求成功，正在处理");
        return "logined";
    }
    @RequestMapping(value = "/test01",params = {"name=test","id!=123"})
    public String test(){
        System.out.println("请求成功，正在处理");
        return  "logined";
    }

    @RequestMapping(value = "/test02",method = RequestMethod.POST)
    public String test01(){
        System.out.println("请求成功，正在处理");
        return  "logined";
    }
}
